﻿using ServerFrame;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Gameserver
{
    /// <summary>
    /// 给token分发命令（传输模型）
    /// </summary>
    public class AbsOnceHandler
    {
        public byte Logic_Type = 0;
        public int Logic_Area = 999;
        public void Send(Mytoken token, int command)
        {
            Send(token, Logic_Area, command);
        }
        
        public void Send(Mytoken token,int area,int command)
        {
            Send(token,area,command,null);
        }
        public void Send(Mytoken token, int command, object message)
        {
            Send(token, Logic_Area, command, message);
        }
        public void Send(Mytoken token,int area,int command,object message)
        {
            Send(token, new TransModel(Logic_Type, area, command, message));
        }
        public void Send(Mytoken token,TransModel model)
        {
            token.send(model);
        }
    }
}
